﻿/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
  config.skin = 'v2';
  config.htmlEncodeOutput = false;
  config.entities = false;

  config.toolbar = 'MyToolbar';
 
	config.toolbar_MyToolbar =
	[
		{ name: 'clipboard', items : [ 'Source','-','Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
		{ name: 'insert', items : [ 'Image','Flash','Table','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'] },
                '/',
		{ name: 'styles', items : [ 'TextColor','BGColor','Format' ] },
		{ name: 'basicstyles', items : [ 'Bold','Italic','Strike','-','RemoveFormat' ] },
		{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote' ] },
		{ name: 'links', items : [ 'Link','Unlink','Anchor' ] }
	];
  
  config.pasteFromWordPromptCleanup = true;
  
  config.filebrowserImageUploadUrl = PG_URL+'/uploader/upload';
  
  config.filebrowserBrowseUrl = PG_URL+'/ckfinder/ckfinder.html';
	config.filebrowserImageBrowseUrl = PG_URL+'/ckfinder/ckfinder.html?type=Images';
	config.filebrowserFlashBrowseUrl = PG_URL+'/ckfinder/ckfinder.html?type=Flash';
	config.filebrowserUploadUrl = 
 	   PG_URL+'/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files&currentFolder=/archive/';
};